function ajaxLoad(obj,url,defMessage,post,callback,o)
{
  var ajaxObj;
  if (defMessage) document.getElementById(obj).innerHTML=defMessage;
  if(window.XMLHttpRequest){ 
      ajaxObj = new XMLHttpRequest(); 
  } else if(window.ActiveXObject){ 
      ajaxObj = new ActiveXObject("Microsoft.XMLHTTP");  
  } else { 
      return; 
  }
  
	if(o=='Rīga' || o=='Rīgas rajons')
	{	
		document.getElementById('city1').style.display='';
	}
	else
	{
		document.getElementById('city1').style.display='none';
	}
  ajaxObj.open ((post?'POST':'GET'), url);
  if (post&&ajaxObj.setRequestHeader)
      ajaxObj.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8;");
 
  ajaxObj.onreadystatechange = ajaxCallBack(obj,ajaxObj,(callback?callback:null));
  ajaxObj.send(post); 
  return false;
} 
function updateObj(obj, data, bold, blink)
{ 
   if(bold)data=data.bold();
   if(blink)data=data.blink();
   document.getElementById(obj).innerHTML = data; // упрощенный вариант, работает не во всех браузерах
} 
function ajaxCallBack(obj, ajaxObj, callback)
{
	return function()
	{
		if(ajaxObj.readyState == 4)
		{
		   if(callback) if(!callback(obj,ajaxObj))return;
		   if (ajaxObj.status==200)
			updateObj(obj, ajaxObj.responseText);
		   else updateObj(obj, ajaxObj.status+' '+ajaxObj.statusText,1,1);
		}
	}
}
function l()
{
	return document.getElementById('city1').style.display='';
}